<!-- 简单的element-ul布局-->
<template>
  <div id="app">
    <!-- el-row 行
    el-col 列 默认情况下将界面分成 24列 :sapn=8
     -->
    <!-- <el-row class="box">
      <el-col :span=8>
        <div class="bg-green"></div>
      </el-col>
      <el-col :span=8>
        <div class="bg-yellow"></div>
        </el-col>
      <el-col :span=8>
        <div class="bg-pink"></div>
      </el-col>
    </el-row>
  </div> -->
   <!-- 有间隔的例子 -->
    <el-row :gutter="20">
      <el-col :span="6">
        <div class="bg-yellow"></div>
      </el-col>
      <el-col :span="6">
        <div class="bg-red"></div>
      </el-col>
      <el-col :span="6">
        <div class="bg-yellow"></div>
      </el-col>
      <el-col :span="6">
        <div class="bg-red"></div>
      </el-col>
    </el-row>
</template>

<script>
// import HelloWorld from "./components/HelloWorld.vue";

export default {
  name: "App",
  components: {},
};
</script>

<style>
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
</style>
<style lang="less" scoped>
.box{
  widows: 100vw;
  height: 100%;
}
.bg-yellow{
  height: 100vh;
  width: 100%;
  background-color: yellow;
}
.bg-pink{
   height: 100vh;
  width: 100%;
  background-color: pink;
}
.bg-green{
   height: 100vh;
  width: 100%;
  background-color: green;
}
</style>
